package com.zh.testprimary;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @Description:
 * @ClassName TestSet
 * @date: 2021.03.30 16:17
 * @Author: zhanghang
 */
public class TestSet {
    public static void main(String[] args) {
        Set<String> set = new HashSet<>();
        set.add("a");
        set.add("b");
        set.add("c");
        List<String> keyList = new ArrayList<>();
        keyList.addAll(set);
        System.out.println(keyList);
    }
}
